package javajc;

import java.util.Scanner;

public class day05_Addition {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int add = 0;
        for(int i=1;i<=10;i++){
            int a = (int)(Math.random()*100+1);
            int b = (int)(Math.random()*100+1);
            int sum = a+b;
            System.out.println(a+"+"+b+"=");
            int answer = scan.nextInt();
            if(answer==sum){
                add+=10;
            }
        }
        System.out.println("总分数："+add);
    }
}
